package com.example.forum.services;

import com.example.forum.model.User;

public interface IUserService {
    void createNormalUser(User user);

    User selectByName(String username);

    User login(String username,String password);

    User SelectById(Long id);

    void addOnceArticleCountById(Long id);

    void subOneArticleCountById(Long id);   //删除帖子时，用户的发帖数量减少

    void modifyInfo(User user);

    void modifyPassword(Long id,String newPassword,String oldPassword);
}
